Ext.require('Ext.data.proxy.Rest');

Ext.define('MxSt.store.Users', {
	extend: 'Ext.data.Store',

	autoLoad: true,
	model: 'MxSt.model.User',

	proxy: {
		type: 'rest',
		url: '../data/users',

		headers: {
			'Accept': 'application/json',
			'Content-Type': 'application/json'
		},

		reader: {
			type: 'json',
			root: 'data',
			successProperty: 'success'
		}
	}
});
